import Vue from 'vue'
import App from './App.vue'

//导入组件库
import bbUI from '../packages'
//注册组件库
Vue.use(bbUI)

//
const VUE_APP_BASE_API = 'http://testctms.blueballon.cn/api/v1.0/ctms'
import axios from 'axios'
let Axios = axios.create({
  baseURL: VUE_APP_BASE_API,
  withCredentials: true,
  timeout: 5000
})
Vue.prototype.$axios = Axios

//导入elementui
import ElementUI from 'element-ui';
//导入elementui样式
import 'element-ui/lib/theme-chalk/index.css'
//将elementui注册到vue
Vue.use(ElementUI);

// 引入组件
import BBComponents from '@/components/index.js'
Vue.use(BBComponents)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
}).$mount('#app')